package roborally.program.text;

import roborally.program.command.Command;

public interface TextCommandPattern {

	/**
	 * Controls if the given word matches the pattern of this.
	 * 
	 * @param word
	 * @return
	 */
	public abstract boolean matches(String word);
	
	/**
	 * If the given word matches, a new command will be created according the word.
	 * @param word
	 * @return
	 */
	public abstract Command create(String word);

}
